﻿var turb;   //当前风机
var normalTransform;   //正常的Transform参数值
//鼠标覆盖风机，放大
var turb_mouseover = function (e) {
    turb = $("#t" + $(e.target).attr("tId"));
    normalTransform = turb.attr("transform");
    var c = normalTransform.match(/\d{1,3},\d{1,3}/).toString().split(',');
    var lgTransform = "translate(" + String(c[0] - 5) + "," + String(c[1] - 5) + ") scale(1.2,1.2)";  //放大后的Transform参数值
    turb.attr("transform", lgTransform);
}
//鼠标移出风机，还原
var turb_mouseout = function (e) {
    turb.attr("transform", normalTransform);
}